package com.guanyong.dao;

import com.guanyong.model.FilmInfoModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by mxk on 2017/6/1.
 */
public interface IFilmInfoDaoMapper {
    @Select("SELECT * FROM t_ad_filminfo  where f_id=#{fId}")
    @ResultMap("FilmInfoResultMap")
    FilmInfoModel selectByPrimaryKey(String fId);


    @Select("SELECT * FROM t_ad_filminfo  where f_id in (${idlist})")
    @ResultMap("FilmInfoResultMap")
    List<FilmInfoModel> selectIdList(@Param("idlist") String idlist);

    int insert(@Param(value = "record") FilmInfoModel record);

    int update(@Param(value = "record") FilmInfoModel record);

}
